<template>
	<view>
		<view class="uni-form-item uni-column">
		    <view class="title"><text class="uni-form-item__title">标题</text></view>
		    <view class="uni-input-wrapper">
		        <input class="uni-input" focus placeholder="请输入标题" v-model="Title" />
		    </view>
		</view>
		<view class="uni-form-item uni-column">
		    <view class="title"><text class="uni-form-item__title">内容</text></view>
		    <view class="uni-input-wrapper">
		        <input class="uni-input" focus placeholder="请输入内容" v-model="Content"/>
		    </view>
		
		</view>
		<navigator url="../index/index">
			<button type="primary" @click="submit1"> 提交 </button>
		</navigator>
	</view>
</template>

<script>
	import blog_data from "../../common/js/blogs.js"
	export default {
		data() {
			return {
					Title:'',
					Content:''
					
			}
		},
		methods: {
			submit1(){
				
				uni.request({
					url: 'http://localhost:8000/news_list/add1/',
					method: 'POST',
					data: {Title:this.Title,Content:this.Content},/*data*/
					success: res => {
						console.log(res);
						
						
						
			}
			
		})
		
	}
	},
	}
	
	
</script>

<style>

</style>
